package ferp.android.widgets.buttons;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import ferp.android.R;
import ferp.android.widgets.BidView;
import ferp.core.game.Bid;

/**
 * User: igorgok
 * Date: 1/22/14 2:14 PM
 */
public class BidButton extends TwoLayerButton
{
  public BidButton(Context context, AttributeSet attrs)
  {
    super(context, attrs);
  }

  public void show(Bid bid) {bv.show(bid);}

  @Override
  protected int getButtonBackgroundResource() {return R.drawable.selector_button_intro;}

  @Override
  protected View onCreateUpperLayer(Context context, AttributeSet attrs)
  {
    bv = new BidView(context, 0.7f, 0.5f);
    //bv.setTag(new Object());

    return bv;
  }

  private BidView bv;
}
